package org.happen.android.core.model;

import org.happen.android.app.AppContext;
import org.happen.android.core.data.AppInfo;
import org.happen.android.core.db.AppDbHelper;

import android.content.Context;
import android.database.sqlite.SQLiteOpenHelper;

import com.j256.ormlite.android.apptools.OpenHelperManager;

public class AppModel
{

	Context context;
	SQLiteOpenHelper helper;

	public AppModel()
	{
		context = AppContext.getInstance();
		helper = OpenHelperManager.getHelper(context, AppDbHelper.class);
	}

	public AppInfo getAppInfo()
	{
		//		ConnectionSource connectionSource = new AndroidConnectionSource(helper);
		//		try {
		//			Dao<AppInfo, Integer> accountDao = DaoManager.createDao(connectionSource, AppInfo.class);
		//		} catch (SQLException e) {
		//			e.printStackTrace();
		//		}
		return null;
	}
}